﻿cmake_minimum_required(VERSION 3.16)
project(NosepieceOUMIT VERSION 0.1 LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 REQUIRED COMPONENTS SerialPort)

add_library(NosepieceOUMIT SHARED  NosepieceOUMIT.h  NosepieceOUMIT.cpp )

target_link_libraries(NosepieceOUMIT PRIVATE Qt6::SerialPort)
target_compile_definitions(NosepieceOUMIT PRIVATE NOSEPIECE_LIBRARY)